<template>
  <div class="privacy">
    <van-nav-bar
      title="隐私设置"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <div class="rowBox">
      <div class="row">
        <div>需要好友验证</div>
        <div><van-switch v-model="friendChecked" active-color="#07c160" inactive-color="white"/></div>
      </div>
      <div class="row">
        <div>让对方知道我正在输入</div>
        <div><van-switch v-model="myChecked" active-color="#07c160" inactive-color="white"/></div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        friendChecked: true,
        myChecked:true
      }
    },
  }
</script>

<style lang='less'>
  .privacy{
    background-color: #e6e6e6;
    min-height: 100vh;
    .van-nav-bar{
      background-color: #5cadff;
      .van-nav-bar__title{
         color: white;
      }
      .van-icon{
        color: white;
      }
    }
    .rowBox{
      margin: 10px 0;
      .row{
        background-color: white;
        padding: 10px;
        border-bottom: 1px solid #eeeeee; 
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    }
  }
</style>